package com.newer.pojo.sys;

public class Region {
	/**
	 * 区域编码
	 */
    private String id;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 区域
     */
    private String district;
    /**
     * 邮政编码
     */
    private String postCode;
    /**
     * 简码
     */
    private String shortCode;
    /**
     * 城市编码
     */
    private String cityCode;

    /**
     * 无参构造
     */
	public Region() {
		super();
	}
	/**
     * 有参构造
     */
	public Region(String id, String province, String city, String district, String postCode, String shortCode,
			String cityCode) {
		super();
		this.id = id;
		this.province = province;
		this.city = city;
		this.district = district;
		this.postCode = postCode;
		this.shortCode = shortCode;
		this.cityCode = cityCode;
	}
	/**
	 * get set方法
	 * @return
	 */
	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district == null ? null : district.trim();
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode == null ? null : postCode.trim();
    }

    public String getShortCode() {
        return shortCode;
    }

    public void setShortCode(String shortCode) {
        this.shortCode = shortCode == null ? null : shortCode.trim();
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode == null ? null : cityCode.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", district=").append(district);
        sb.append(", postCode=").append(postCode);
        sb.append(", shortCode=").append(shortCode);
        sb.append(", cityCode=").append(cityCode);
        sb.append("]");
        return sb.toString();
    }
}